import React from 'react';
import ProTypes from 'prop-types';

import styles from './index.less';


const PxFrame = ({ pxOrd, ...rest}) => {
  return (
    <iframe className={styles.pxFrame} frameborder='0' scrolling='no' src={'ord/'+pxOrd} { ...rest }></iframe>
  );
}

PxFrame.propTypes = {
  pxOrd: ProTypes.string.isRequired
}

export default PxFrame;
